import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer';

const modules = import.meta.glob('./modules/*.ts', {
	eager: true,
});
const mockModules = [];
Object.keys(modules).forEach((key) => {
	mockModules.push(...modules[key].default);
});

export function setupProdMockServer() {
	createProdMockServer(mockModules);
}
